package com.zretc.service.impl;

import com.zretc.dao.TypeMapper;
import com.zretc.entity.Type;
import com.zretc.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeMapper typeMapper;

    @Override
    public List<Type> getAllType() {
        return typeMapper.findAllType();
    }

    @Override
    public List<Type> getTypeBySellerAccount(String sellerAccount) {

        return typeMapper.getTypeName(sellerAccount);
    }
}
